<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //存储一个名字
        localStorage.setItem('uname','pink老师')
        //获取方式都要加引号
        //console.log(localStorage.setItem('uname'));
        //删除本地存储，只删除名字
        //localStorage.removeItem('uname')
        //改 
        localStorage.setItem('uname','red老师')

        //我要存一个年龄
        localStorage.setItem('age','18')
        //console.log(localStorage.setItem('age'));
        
    </script>
</body>
</html>